/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.controllers;

import com.bs.beans.Conta;
import com.bs.extensoesSwing.AbstractGridController;
import com.bs.forms.ContasForm;

/**
 *
 * @author Bone
 */
public class ContaGridController <E> extends AbstractGridController<Conta>{

    @Override
    public void novo() {
        Conta c = new Conta();
        ContasForm f = new ContasForm(c);
        f.setVisible(true);
        if(c.getId()!= null)adicionarALista(c);
        f = null;
    }

    @Override
    public void alterar() {
        ContasForm f = new ContasForm(getBeanSelecionado());
        f.setVisible(true);
        f = null;
    }
    
}
